import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'
export default defineConfig({
  plugins: [vue()],
  resolve:{
    alias:{
      '@':resolve(__dirname,"./src")
    }
  },
  build:{
    outDir:'giles'
  },
  css:{
    preprocessorOptions:{
      scss:{
        additionalData:`@import 'src/assets/style/variables.scss';`
      }
    }
  },
  server:{
    proxy:{
      '/api': {
        target: 'https://www.qyer.com',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, '')
      }
    }
  }
})
